<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Test Order</title>
<script src="jquery-2.1.1.min.js"> </script>
<script>
function testOrder(){

	$.post("Order",{login_name:login_name,password:password,name:name,
	                    email:email,phone:phone,address1:address1,address2:address2,city:city,
	                     region:region,country:country,postCode:postCode,bulletin:bulletin,
	                     gender:gender},function(data){
								if(data == 'coincidence'){
									document.getElementById("comment").innerHTML="Случайно съвпадение на имена в последния момент. Моля, променете потребителското име."
									$("#login_name_comment").html(usernameIsNotFree);
								}else{
									window.location = data;
								}
							
	                         });
                         
}

</script>
</head>
<body>
<button  type="button" onclick="testOrder()"> Test Order </button>
 
 
</body>
</html>